package cn.aitrox.ry.service.config.config;

import feign.Request;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.TimeUnit;

@Configuration
public class ConfigFeignConfig {
    /**
     * 超时时间配置
     */
    @Bean
    public Request.Options configFeignOptions(){
        return new Request.Options(3, TimeUnit.SECONDS, 30, TimeUnit.SECONDS, true);
    }
}
